package com.woniu.smallmedical.server.serverimpl;

import com.woniu.smallmedical.entity.Address;
import com.woniu.smallmedical.mapper.AddressMapper;
import com.woniu.smallmedical.server.AddressServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author author
 * @create 2021-09-26-8:59
 */
@Service
public class AddressServerImpl implements AddressServer {
    @Autowired
    private AddressMapper addressMapper;


    @Override
    public List<Address> getProvince() {
        List<Address> province = addressMapper.getProvince();
        return province;
    }

    @Override
    public List<Address> getcity(int id) {
        List<Address> getcity = addressMapper.getcity(id);
        return getcity;
    }
}
